package com.ehome.poct.base.dao.account.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ehome.mybatisplus.autoconfigure.BaseEntityOld;
import lombok.Data;

import java.math.BigDecimal;

/**
    * 预付款明细
    */
@Data
@TableName(value = "term_agent_prepayment_detail")
public class TermAgentPrepaymentDetailDO extends BaseEntityOld<TermAgentPrepaymentDetailDO> {
    @TableId(value = "term_agent_prepayment_detail_id")
    private Long termAgentPrepaymentDetailId;

    /**
     * 预付款id
     */
    @TableField(value = "term_agent_prepayment_id")
    private Long termAgentPrepaymentId;

    /**
     * 变动类型（1：收入；2：支出；3：调整）
     */
    @TableField(value = "change_type")
    private Integer changeType;

    /**
     * 变动金额
     */
    @TableField(value = "change_amount")
    private BigDecimal changeAmount;

    /**
     * 期初余额
     */
    @TableField(value = "begin_amount")
    private BigDecimal beginAmount;

    /**
     * 期末余额
     */
    @TableField(value = "after_amount")
    private BigDecimal afterAmount;

    /**
     * 关联的检测订单号
     */
    @TableField(value = "test_order_no")
    private String testOrderNo;

    /**
     * 订单来源
     */
    @TableField(value = "order_source")
    private String source;
}